deploy: Fix removing /var/.updated with separate /var mount
authorColin Walters <walters@verbum.org>
Fri, 21 Sep 2018 13:47:36 +0000 (09:47 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 21 Sep 2018 15:47:43 +0000 (15:47 +0000)
commit44d5f1cb8c1544b5df332a32149c61745fcfc43c
treeb80398ed82b6748a2ecff583a860774fd42740dc
parent5d2e62affb7eaf919411fff667f1097fb14885a1
deploy: Fix removing /var/.updated with separate /var mount

There's some subtlety to this, we don't handle all cases.
But the 99% cases are using `--sysroot deploy` to create an
initial deployment, and then doing upgrades from inside
a booted deployment.

It was only the latter case that didn't work with a separate `/var`.
Fixing all of them would probably require libostree to learn
how to e.g. look at `/etc/fstab` (or worse, systemd mount units?)
and handle the mounting.  I don't think we want to do anything
like that right now, since there are no active drivers for the
use case.

Closes: https://github.com/ostreedev/ostree/issues/1729
Closes: #1730
Approved by: akiernan
src/libostree/ostree-sysroot-deploy.c